import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    xzQrCodeDisplay: true,   //控制app下载页弹窗显示隐藏
    tabName: '',      //控制标签栏点击显示的样式
    pageName: '',     //购买服务跳转对应的页面
  },
  mutations: {
    SET_XZQRCODEDISPLAY(state,data){
      state.xzQrCodeDisplay = !state.xzQrCodeDisplay
    },
    SET_TABNAME(state,data){
      state.tabName = data
    },
    SET_PAGENAME(state,data){
      state.pageName = data
    }
  },
  actions: {},
  modules: {},
});
